package model.unit 
{
	/**
	 * ...
	 * @author Kylin206
	 */
	public class UnitFactory 
	{
		private static var idCount:uint = 0;
		public function UnitFactory() 
		{
			
		}
		
		public function createUnit(typeID:uint, camp:uint):AbsUnit
		{
			var id:uint = ++idCount;
			
			var unit:AbsUnit = new AbsUnit(id);
			unit.camp = camp;
			
			
			return unit;
		}
	}

}